package com.xiyu.service.enums.fee.charge;

import com.xiyu.service.enums.fee.category.FeeCategoryTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 收费方式
*/
@Getter
@AllArgsConstructor
public enum FeeChargeTypeEnum implements IntArrayValuable {

    /**
    * 按天
    */
    DAY(1, "按天"),
    /**
    * 按月
    */
    MONTH(2, "按月");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(FeeChargeTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(FeeChargeTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
